﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="warehouseList.aspx.cs" Inherits="WebSite.admin.warehouse.warehouseList" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>福利点点通 </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
     <script src="../js/common.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
       <div class="maincontent">
       <ext:Button id="btnAddWarehouse" runat="server" Text="添加仓库" 
               onclick="btnAddWarehouse_Click"></ext:Button>
    <ext:PageManager ID="PageManager1" runat="server" />
      <ext:SimpleForm ID="extForm1" runat="server" BodyPadding="5px"   
            EnableBackgroundColor="false" Title="仓库管理"  ShowHeader="true" >
              <Items>
            <ext:Panel ID="Panel2" ShowHeader="false"  CssClass="x-form-item" ShowBorder="false" Layout="Column" runat="server">
             <Items>
 
            <ext:Label ID="lblKeywords"  Width="60px"    runat="server" Text="&nbsp;&nbsp;关键字："></ext:Label>
            <ext:TextBox runat="server" ID="txtKeywords"   MaxLength="100" Label="关键字" ></ext:TextBox>
                   <ext:Button ID="btnSearch" Text="搜索"  CssClass="mleft mright" runat="server" 
                     OnClick="btnSearch_Click"></ext:Button>
                  </Items>
         </ext:Panel>

     </Items>
     
   </ext:SimpleForm>


         <ext:Grid ID="Grid1" Title="查询结果" PageSize="50" ShowBorder="false"  CssClass="x-form-item"   AllowPaging="true" SortColumn="warebh" SortDirection="ASC"     
                        OnPageIndexChange="Grid1_PageIndexChange" ShowHeader="False" runat="server" EnableCheckBoxSelect="True"   AllowSorting="true"    IsDatabasePaging="false" 
                        DataKeyNames="id" OnSort="Grid1_Sort" EnableRowNumber="True">

        <Columns>
               <ext:BoundField Width="100px" ColumnID="warebh" SortField="warebh" DataField="warebh" DataFormatString="{0}"
                HeaderText="仓库编号" />
                  <ext:BoundField Width="100px" ColumnID="WarehouseName" SortField="WarehouseName" DataField="WarehouseName" DataFormatString="{0}"
                HeaderText="仓库名称" />
                  <ext:BoundField Width="100px" ColumnID="WarehouseMan" SortField="WarehouseMan" DataField="WarehouseMan" DataFormatString="{0}"
                HeaderText="负责人" />
                  <ext:BoundField Width="100px" ColumnID="Phone" SortField="Phone" DataField="Phone" DataFormatString="{0}"
                HeaderText="联系电话" />
                  <ext:BoundField Width="100px" ColumnID="Address" SortField="Address" DataField="Address" DataFormatString="{0}"
                HeaderText="仓库地址" />
                  <ext:BoundField Width="100px" ColumnID="Content" SortField="Content" DataField="Content" DataFormatString="{0}"
                HeaderText="描述" />
                  <ext:BoundField Width="100px" ColumnID="AdminName" SortField="AdminName" DataField="AdminName" DataFormatString="{0}"
                HeaderText="编辑人" />
     
            <ext:BoundField Width="100px" ColumnID="Editdate" SortField="Editdate" DataField="Editdate" DataFormatString="{0}"
                HeaderText="编辑时间" />
                <ext:BoundField Width="100px" ColumnID="CreateTime" SortField="CreateTime" DataField="CreateTime" DataFormatString="{0}"
                HeaderText="创建时间" />
       
        
          <ext:TemplateField Width="100px" SortField="" HeaderText="操作">
                <ItemTemplate>

                 <div style="float:left; display:block;" id="divEdit" runat="server">  <a href="warehouse.aspx?ot=ed&id=<%# Eval("id") %>"  title="编辑">[编辑]</a></div>
                 <div style="float:left; display:block;" id="divDeleted" runat="server">  <a title="删除" href="warehouseList.aspx?action=del&amp;id=<%# Eval("id") %>" onclick="javascript:return confirm('你确定要删除吗？');">[删除]</a></div>
                    
                </ItemTemplate>
            </ext:TemplateField>
        </Columns>
    </ext:Grid>
    </div>
    </form>
</body>
</html>
